package net.realsee.common.enums.wcs.plc;

/**
 * Plc通讯方式枚举
 *
 * @author 孙正华
 * @since 2023/8/15 13:52
 */
public enum PlcReadWriteErrEnum {

    UNKNOWN(500, "未知异常"),
    NOT_FOUND_HANDLE_SERVICE(1000, "查询不到处理类"),
    DEVICE_OFFLINE(1001, "设备离线"),
    TAG_NOT_EXIST(1002, "点位信息不存在"),
    TAG_TYPE_NOT_SUPPORT(1003, "读取类型不支持"),
    ;

    private final int code;
    private final String message;

    PlcReadWriteErrEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
